import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
	{
		path:"/resDetail",
		component:()=> import("./views/RestaurantDetail.vue")
	},
    {
      path: '/find',
      name: 'find',
      component: () => import('./views/Find.vue')
    },
    {
      path: '/order',
      name: 'order',
      component: () => import('./views/Order.vue')
    },
    {
      path: '/me',
      name: 'me',
      component: () => import('./views/Me.vue'),
	  children:[
		  {path:'login',
		  component: () => import('./views/Login.vue')
		  }
	  ]
    }
  ]
})
